<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
    <style>
        .box{
            width:200px;
            height: 200px;
            background: rgb(228, 143, 143);
        }
    </style>
</head>
<body>
    <div id="app">
       <div> 
        {{msg.split('').reverse().join("")}}   
        </div>
        <div v-text="msg.split('').reverse().join('')"></div>

        <div v-text="richTxt"></div>
        {{ richTxt }}
        <div v-html="richTxt"></div>

        <div v-text=" num>10?'大于10':'小于10' "></div>
    </div>
    <script>
        let vm = new Vue({
            el:"#app",
            data:{
                msg:"hello vue",
                num:10,
                richTxt:`
                    <h1> 富文本数据 </h1>
                `
            }
        })
        
    </script>
</body>
</html>